<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>句容机关工委网站管理后台</title>
        <!--                       CSS                       --><!-- Reset Stylesheet -->
        <link rel="stylesheet" href="../style/reset.css" type="text/css" media="screen" />
        <!-- Main Stylesheet -->
        <link rel="stylesheet" href="../style/style.css" type="text/css" media="screen" />
        <!-- Invalid Stylesheet. This makes stuff look pretty. Remove it if you want the CSS completely valid -->
        <link rel="stylesheet" href="../style/invalid.css" type="text/css" media="screen" />
        <link rel="stylesheet" href="../js-plugin/jquery-ui/jquery-ui.css" type="text/css" />
        <link rel="stylesheet" href="../style/master/webLink.css" type="text/css" media="screen" />
        <link rel="stylesheet" href="../js-plugin/uploadify/uploadify.css" type="text/css" media="screen" />
        <link rel="stylesheet" href="../style/msgbox.css" type="text/css" />
        <!--                       Javascripts                       --><!-- jQuery -->
        <script type="text/javascript" src="../js-plugin/jquery-1.6.min.js">
        </script>
        <script type="text/javascript" src="../js-plugin/jquery-ui/jquery-ui.min.js">
        </script>
        <!-- jQuery Configuration -->
        <script type="text/javascript" src="../js-plugin/simpla.jquery.configuration.js">
        </script>
        <!-- Facebox jQuery Plugin -->
        <script type="text/javascript" src="../js-plugin/facebox.js">
        </script>
        <script src="../js-plugin/jquery.easy-confirm-dialog.js">
        </script>
        <script type="text/javascript" src="../js-plugin/jquery.form.js">
        </script>
        <script type="text/javascript" src="../js-plugin/jquery.validate.min.js">
        </script>
        <script type="text/javascript" src="../js-plugin/additional-methods.min.js">
        </script>
        <!-- SWF UPLOAD -->
        <script type="text/javascript" src="../js-plugin/uploadify/swfobject.js">
        </script>
        <script type="text/javascript" src="../js-plugin/uploadify/jquery.uploadify.v2.1.4.min.js">
        </script>
        <script type="text/javascript" src="../js-plugin/jquery.template.js">
        </script>
        <script src="../js-plugin/tpl.js">
        </script>
        <script src="../js/master/logoLink.js">
        </script>
    </head>
    <body>
        <div class="loadingbox clearfix">
        </div>
        <div id="main-content">
            <div class="content-box">
                <!-- Start Content Box -->
                <div class="content-box-header">
                    <h3>LOGO链接列表</h3>
                </div>
                <!-- End .content-box-header -->
                <div class="content-box-content">
                    <div class="tab-content default-tab" id="tab1">
                        <!-- This is the target div. id must match the href of this div's tab -->
                        <div class="notification attention png_bg" style="display:none">
                            <a href="#" class="close"><img src="/images/manage/icons/cross_grey_small.png" title="Close this notification" alt="close" /></a>
                            <div id="errormsg">
                                错误信息
                            </div>
                        </div>
                        <div class="content-box">
                            <div class="content-box-header">
                                <!-- Add the class "closed" to the Content box header to have it closed by default --><h3>新增/编辑LOGO链接</h3>
                                <a class="button align-right20 button_fix newBtn" href="#">新增 </a>
                            </div>
                            <!-- End .content-box-header -->
                            <div class="content-box-content">
                                <div class="tab-content default-tab">
                                    <form id="newWebLink" action="/action/master/AddWebLink" method="post">
                                        <input type="hidden" id="linkid" name="id" value="-1" />
										<input type="hidden" id="islogo" name="islogo" value="1" />
										<input type="hidden" id="logo" name="logo" value="" />
										<span id="view_logo"></span>
                                        <p>
                                            <span id="logo_upload" name="file_upload"></span>
                                        </p>
                                        <div id="custom-queue">
                                        </div>
                                        <p>
                                            <label class="inline">
                                                单位名称
                                            </label>
                                            <input class="text-input small-input" type="text" id="name" name="name" />
                                            <label class="inline">
                                                链接地址
                                            </label>
                                            <input class="text-input small-input" type="text" id="url" name="url" /><a class="button saveBtn" href="#">保存</a>
                                        </p>
                                    </form>
                                </div>
                                <!-- End #tab3 -->
                            </div>
                            <!-- End .content-box-content -->
                        </div>
                        <div class="clear">
                        </div>
                        <div class="content-box">
                            <div class="content-box-header">
                                <h3>链接列表</h3>
                            </div>
                            <div class="content-box-content">
                                <div class="tab-content default-tab">
                                    <table>
                                        <thead>
                                            <tr>
                                                <th width="64%">
                                                    单位名称
                                                </th>
                                                <th width="24%">
                                                    LOGO图片
                                                </th>
                                                <th width="12%">
                                                    管理
                                                </th>
                                            </tr>
                                        </thead>
                                        <tbody id="data-content">
                                            <#list links.logoList(20) as links>
                                            <tr id="tr_${links.id?c}">
                                                <td>
                                                    <a href="${links.url}" target="_blank">${links.name}</a>
                                                </td>
                                                <td>
                                                    <img src="${links.logo}" />
                                                </td>
                                                <td>
                                                    <a href="${links.id?c}" class="editBtn">修改</a>
                                                    | <a href="${links.id?c}" class="deleteBtn" title="你确定要删除该友情链接么">删除</a>
                                                </td>
                                            </tr>
                                            </#list>
                                        </tbody>
                                        <tfoot>
                                            <tr>
                                                <td colspan="3">
                                                    <div class="pagination">
                                                        ${links.getPaginator()} 
                                                    </div>
                                                    <!-- End .pagination -->
                                                    <div class="clear">
                                                    </div>
                                                </td>
                                            </tr>
                                        </tfoot>
                                    </table>
                                </div>
                                <!-- End #tab3 -->
                            </div>
                            <!-- End .content-box-content -->
                        </div>
                    </div>
                    <!-- End #tab1 -->
                    <table style="display:none;">
                        <tr id="link-tpl">
                            <td>
                                <a href="" target="_blank"></a>
                            </td>
                            <td>
                            </td>
                            <td>
                                <a href="" class="editBtn">修改</a>
                                | <a href="" class="deleteBtn" title="你确定要删除该友情链接么">删除</a>
                            </td>
                        </tr>
                    </table>
                </div>
                <!-- End .content-box-content -->
            </div>
        </div>
    </body>
</html>
